﻿// See https://aka.ms/new-console-template for more information
using PrototypePattern;

Console.WriteLine("Hello, World!");


ConcretePrototypeA p1 = new ConcretePrototypeA("asdfghjkl");
ConcretePrototypeA p2 = (ConcretePrototypeA)p1.Clone();
ConcretePrototypeA p3 = p1;

Console.WriteLine(p1.Id);
Console.WriteLine(p2.Id);
Console.WriteLine(p3.Id);


Resume a = new Resume("张三");
a.SetPersonalInfo("男", "29");
a.SetWorkExperience("1998 - 2000", "XX 公司");

Resume b = (Resume)a.Clone();
b.SetPersonalInfo("女", "12");

Resume c = (Resume)a.Clone();
c.SetWorkExperience("2000 - 2004", "ZZ 公司");

a.Display();
b.Display();
c.Display();